﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FlatOut.Dal.Context;
using FlatOut.Dal.Domain;

namespace FlatOut.Services
{
    public class CarService
    {
        public static List<Car> GetCars()
        {
            List<Car> cars = null;

            // Find groups in base
            using (var context = new FlatOutContext())
            {
                cars = context.Cars.OrderBy(c => c.Name).ToList();
            }

            return cars;
        }
    }
}